<%@include file="_header.jsp"%>

<title>32Learn</title>
</head>
<body>
    <c:choose>
        <c:when test="${userLevel != 2 && userLevel != 3}">
            <%@include file="errorPage.jsp"%>
        </c:when><c:otherwise>
            <%@include file="_menu.jsp"%>

            <div class="wrappermain">


                <div class="digitalclass">
                    <div id="subheader"><a href="#"><div id="bar-textcontent">${inhoud.newModuleT}</div></div>


                    <div class="main-digital">
                        <br>
                        <c:if test="${foutMelding != null}">
                            <!-- Mochten er foutmeldingen zijn, dan worden ze hier getoond -->
                            <p><a style="color:#FF0000">${foutMelding}</a></p>
                        </c:if>
                        <form  method="post" action="newModule">
                            <input type="hidden" name="course" value="${courseId}">
                            <table border="1">
                                <tr>
                                    <td>Module ${inhoud.name}:</td>
                                    <td><input type="textfield" id="moduleName" name="moduleName" value="${moduleName}"></input></td>
                                </tr>
                                <tr>
                                    <td>Module ${inhoud.description}:</td>
                                    <td><textarea name="moduleDescription" id="moduleDescription" cols="25" rows="5" maxlength="750">${moduleDescription}</textarea></td>
                                </tr>
                                <tr>
                                    <td></td><td><input type="submit" value="new module"></td>
                                </tr>
                            </table>        
                        </form>
                    </div>
                </div>
            </div>

        </c:otherwise></c:choose>
</body>
</html>
